﻿<controls:ChildWindow x:Class="TrailMap.Controls.EditWaypoint"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="300" 
           Title="{Binding name}" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
    	<Grid>
    		<sdk:Label Margin="8,8,0,0" HorizontalAlignment="Left" Width="89" Height="20" VerticalAlignment="Top" Content="Name:" HorizontalContentAlignment="Right"/>
    		<sdk:Label Margin="8,32,0,0" HorizontalAlignment="Left" Width="89" Height="20" VerticalAlignment="Top" Content="Description:" HorizontalContentAlignment="Right"/>
            <TextBox x:Name="txtDescription" Margin="8,56,8,8" TextWrapping="Wrap" Text="{Binding Description, Mode=TwoWay}"/>
    		<TextBox x:Name="txtName" Height="20" Margin="101,8,8,0" TextWrapping="Wrap" Text="{Binding name, Mode=TwoWay}" VerticalAlignment="Top"/>
    	</Grid>
    </Grid>
</controls:ChildWindow>